<template>
    <div class="newMv">
      <ul class="mv-content">
         <li v-for="item in newMvList" :key="item.id">
            <router-link :to="{name:'Mv',query:{id:item.id,imgSrc:item.cover}}">
            <div class="mv-imgtop">
               <el-image v-if="item.cover" :src="item.cover"></el-image>
               <el-image v-else :src="item.imgurl"></el-image>
               <div class="show-icon"><i class="el-icon-video-play"></i></div>
               <!-- <img src="../../assets/logo.jpg" alt=""> -->
            </div>
            <div class="mv-imgfooter">
             <!-- <a href="">手术刀Scalpel</a>
             <a class="acolor" href="">MeIo</a> -->
              <a href="">{{item.name}}</a>
             <a class="acolor" href="">{{item.artistName}}</a>
             <div class="icon">
                <i class="el-icon-video-camera"></i>
               {{$util.handleNum(item.playCount)}}    
             </div>
               
            </div>
            </router-link>
         </li>
      </ul>
    </div>
</template>
<script>
export default {
   props:['newMvList'],
   data() {
      return {
      }
   },
   created(){
   },
   computed:{
   },
   methods:{
   },
}
</script>
<style lang="less" scoped>
.newMv{
   width: 1200px;
   min-height: 500px;
   .mv-content{
      display: flex;
      // justify-content: space-between;
      margin-right: -20px;
      flex-wrap: wrap;
      li:hover{
          .el-image{
              transform: scale(1.2);
          }
          .show-icon{
            i{
              opacity: 1;
            }
          }
      }
      li{
         width: 224px;
         height: 220px;
         margin: 20px 10px 0 10px;
         cursor: pointer;
         // border: 1px solid red;
         .mv-imgtop{
             width: 224px;
            height: 148px;
            position: relative;
            overflow: hidden;
            // border: 1px solid yellow;
         }
         .el-image{
            width: 100%;
            height: 100%;
            border-radius: 4px;
             transition: all .4s linear;
         }
         //  .el-image:hover{
         //     transform: scale(1.2);
         //  }
          .show-icon{
             position: absolute;
             left: 50%;
               top: 50%;
             transform: translate(-50%,-50%);
            i{
               color: #fff;
               font-size:60px;
               opacity: 0;
                transition: all .4s linear;
                 text-shadow: 2px 2px 10px #000;
             }
          }
         .mv-imgfooter{
            display: flex;
            flex: 1;
            flex-direction: column;
            // border: 1px solid red;
            a{
               margin-top: 5px;
            }
            .acolor{
               color: #ccc;
            }
            .icon{
               display: flex;
               height: 34px;
               line-height: 24px;
               color: #ccc;
               text-align: center;
               i{
                  font-size: 23px;
                  line-height: 24px;
                  padding-right: 10px;
                  padding-top: 1px;
               }
            }
         }
      }
   }
}
</style>
